import ccRequest from '../../index'
import { IDataType } from '../../types'

export function getPageListData(url: string, queryInfo: any): Promise<IDataType> {
  // return ccRequest.get<IDataType>({
  //   url: url
  // })
  console.log('请求后端数据的两个参数依次是：', url, queryInfo)
  return ccRequest.post<IDataType>({
    url: url,
    data: { ...queryInfo }
    // params: { ...queryInfo }
  })
}

// 删除表格数据
export function deletePageData(url: string, data: any) {
  return ccRequest.post<IDataType>({
    url: url,
    data: { ...data }
  })
}
